package com.ruoyi.base.domain;

import java.util.List;

import com.ruoyi.cems.domain.BmsBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 主机场管理;对象 base_main_airport
 * 
 * @author ruoyi
 */
@Data
@ApiModel(description = "主机场管理")
public class BaseMainAirport extends BmsBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 代码 */
    @Excel(name = "三字码")
    @ApiModelProperty("三字码")
    private String code;

    /** 机场名称 */
    @Excel(name = "机场名称")
    @ApiModelProperty("机场名称")
    private String name;

    /** 属地 */
    @Excel(name = "属地")
    @ApiModelProperty("属地")
    private String belongArea;

    /** 机场地址 */
    @Excel(name = "机场地址")
    @ApiModelProperty("机场地址")
    private String address;

    /** 联系人 */
    @Excel(name = "联系人")
    @ApiModelProperty("联系人")
    private String linkPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @ApiModelProperty("联系电话")
    private String tel;

    /** 传真 */
    @Excel(name = "传真")
    @ApiModelProperty("传真")
    private String fax;

    /** 飞行区等级 */
    @Excel(name = "飞行区等级")
    @ApiModelProperty("飞行区等级")
    private String level;

    /** 运营状态 */
    @Excel(name = "运营状态")
    @ApiModelProperty("运营状态")
    private String status;

    @Excel(name = "备注")
    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("四字码")
    private String icao;
    @ApiModelProperty("经度")
    private String longitude;
    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty("单位编码")
    private String unitCode;

    @ApiModelProperty("机场联络表")
    private List<BaseMainAirportContact>  airportContacts;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("REVISION", getREVISION())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("code", getCode())
            .append("name", getName())
            .append("belongArea", getBelongArea())
            .append("address", getAddress())
            .append("linkPerson", getLinkPerson())
            .append("tel", getTel())
            .append("fax", getFax())
            .append("level", getLevel())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("icao", getIcao())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("unitCode", getUnitCode())
            .toString();
    }
}
